#!/usr/bin/python
# -*- encoding: utf-8 -*-
'''
@File    :   human.py
@Time    :   2020/05/30 21:04:45
@Author  :   Malygos_l 
@Version :   1.0
@Contact :   751756061@qq.com
@WebSite :   www.gitee.com/malygos_l
'''
# Start typing your code from here

import doge


class human:
    def __init__(self, name):
        self.aggressivity = 10
        self.blood_volume = 100
        self.name = name

    def simulate_battle_human_txt(self):
        print("%s 正在战斗，他的攻击力是%d" %
              (self.name, self.aggressivity))
        return self.aggressivity

    def attacked(self, other):
        doge_aggressivity = other.simulate_battle_doge_txt()
        if doge_aggressivity != 0:
            if self.aggressivity == 0:
                pass
            else:
                self.aggressivity -= 2
                if self.aggressivity < 0:
                    self.aggressivity = 0
        else:
            pass
        init_blood = self.blood_volume
        self.blood_volume -= doge_aggressivity
        print("%s 被攻击了，他的起始血量是%d，现在的血量是%d" %
              (self.name, init_blood, self.blood_volume))